/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.spider.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 爬虫状态Entity
 * @author hongye
 * @version 2017-04-12
 */
public class SpiderStatus extends DataEntity<SpiderStatus> {
	
	private static final long serialVersionUID = 1L;
	private String spiderId;		// 爬虫ID
	private String spiderName;		// 爬虫名称
	private Integer threadNumber;		// 线程数量
	
	public SpiderStatus() {
		super();
	}

	public SpiderStatus(String id){
		super(id);
	}

	@Length(min=1, max=100, message="爬虫ID长度必须介于 1 和 100 之间")
	public String getSpiderId() {
		return spiderId;
	}

	public void setSpiderId(String spiderId) {
		this.spiderId = spiderId;
	}
	
	@Length(min=1, max=100, message="爬虫名称长度必须介于 1 和 100 之间")
	public String getSpiderName() {
		return spiderName;
	}

	public void setSpiderName(String spiderName) {
		this.spiderName = spiderName;
	}
	
	@NotNull(message="线程数量不能为空")
	public Integer getThreadNumber() {
		return threadNumber;
	}

	public void setThreadNumber(Integer threadNumber) {
		this.threadNumber = threadNumber;
	}
	
}